window: Only update the inspector once
authorBenjamin Otte <otte@redhat.com>
Tue, 25 Aug 2015 17:46:09 +0000 (19:46 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 26 Aug 2015 13:46:07 +0000 (15:46 +0200)
commit5037d134c56ab827a18b965442f5fcac95c9ee8a
tree27d725d0c21fb74fd8d3afa1d1942b1d402a0fa5
parent207e593075b01815973c4bfcb5a0d90f1de8d11e
window: Only update the inspector once

Instead of queueing a new idle handler every time we call
gtk_window_update_debugging(), only queue one if none is queued that.

Saves a lot of work, in particular when templates create context menus
for every row in a large listbox as in the gtk-demo listbox example.
gtk/gtkwindow.c